home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 21 / Cream of the Crop 21 (Terry Blount) (October 1996).iso / program / gnudev1.zip / emx / bin / logargs.cmd < prev    next >
OS/2 REXX Batch file  |  1993-07-02  |  609b  |  30 lines

  1. /* logargs.cmd -- for GDB */
  2.  
  3. version = '1.1'
  4. say "logargs" version
  5.  
  6. say "Enter function name:"
  7. parse pull functionName
  8.  
  9. 'break' functionName
  10. parse var RC 'Breakpoint 'breakNumber' at 'breakAddress':' remainder
  11. if breakNumber = '' then do
  12.   say RC
  13.   return
  14. end
  15.  
  16. say 'Running...'
  17.  
  18. done = FALSE
  19. call lineout 'logargs.txt', '*** logargs 'version' --- 'time()' 'date()' ***'
  20. do while (done == FALSE)
  21.   'continue'
  22.   if (substr(RC, 3, 10) \= 'Breakpoint') then
  23.     done = TRUE
  24.   else do
  25.     parse var RC prejunk '('args')' postjunk
  26.     call lineout 'logargs.txt', args
  27.   end
  28. end
  29. say RC
  30.